#ifndef GETGEOMETRY_H
#define GETGEOMETRY_H

#include<gdal.h>
#include<gdal_priv.h>
#include<ogrsf_frmts.h>

#include <QDebug>
//这个类仅用于辅助读取shp文件

class GetGeometry
{
public:
    GetGeometry();
    ~GetGeometry();

    OGRGeometry *poGeometry;

    int Get_Point(double &X, double &Y, double &Z);
    int Get_LineString(QVector<double> &vecX, QVector<double> &vecY, QVector<double> &vecZ);
    int Get_Polygon(QMap<QString, QVector<double>> &coordinates, QMap <int, QMap<QString, QVector<double>>> &innerring);
    int Get_MultiPoint();
    int Get_MultiLineString();
    int Get_MultiPolygon();
    int Get_GeometryCollection();
};

#endif // GETGEOMETRY_H
